Repository navigation
feat: add KQL output and CI validation for Sigma rules - #1
Merged
Merged
Conversation
Generate Microsoft Sentinel and Defender KQL with pySigma and pysigma-backend-kusto, in the same layout as the Splunk build. Pin CI actions by commit SHA, run sigma check, and require both SPL and KQL conversion to succeed. Add a v0.1.0 changelog, a KQL usage section, and SigmaHQ filename and reference fixes for the Microsoft 365 finance rules.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scripts/build_kql.py,pipelines/sigmafin_kusto.yml, output underbuild/kql/). The layout matches the Splunk build: support rules are not written alone, and correlation rules the backend cannot convert are listed inscripts/policy.yml. Generated files stay uncommitted becausebuild/is gitignored, the same as SPL. CI uploads them askusto-kql..github/workflows/ci.yml) keepspermissions: contents: read, pins actions to commit SHAs, runssigma check --fail-on-issues --fail-on-error, and requires both SPL and KQL conversion to succeed.sigma checkreported no rule errors.CHANGELOG.mdwith a v0.1.0 entry and a README section on KQL usage (Sentinel tables, Defender table swap, bracket quotes for dotted fields).docs/sigmahq-submission.mdand apply the convention fixes in this repo. The threem365_*finance rules are renamed tomicrosoft365_*, andattack.mitre.orglinks are removed from theirreferences(techniques stay intags). Not submitted.Test plan
sigma check --fail-on-issues --fail-on-error rulespython scripts/check_metadata.pypython scripts/check_no_em_dash.pypython scripts/gen_docs.py --checkpython scripts/build_spl.pypython scripts/build_kql.pypython -m pytest -q tests(183 passed)